package com.employ.job.service.impl;

import java.util.List;
import com.employ.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.employ.job.mapper.EmpCareerGuidesMapper;
import com.employ.job.domain.EmpCareerGuides;
import com.employ.job.service.IEmpCareerGuidesService;

/**
 * 就业指导Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-24
 */
@Service
public class EmpCareerGuidesServiceImpl implements IEmpCareerGuidesService 
{
    @Autowired
    private EmpCareerGuidesMapper empCareerGuidesMapper;

    /**
     * 查询就业指导
     * 
     * @param id 就业指导主键
     * @return 就业指导
     */
    @Override
    public EmpCareerGuides selectEmpCareerGuidesById(Long id)
    {
        return empCareerGuidesMapper.selectEmpCareerGuidesById(id);
    }

    /**
     * 查询就业指导列表
     * 
     * @param empCareerGuides 就业指导
     * @return 就业指导
     */
    @Override
    public List<EmpCareerGuides> selectEmpCareerGuidesList(EmpCareerGuides empCareerGuides)
    {
        return empCareerGuidesMapper.selectEmpCareerGuidesList(empCareerGuides);
    }

    /**
     * 新增就业指导
     * 
     * @param empCareerGuides 就业指导
     * @return 结果
     */
    @Override
    public int insertEmpCareerGuides(EmpCareerGuides empCareerGuides)
    {
        empCareerGuides.setCreateTime(DateUtils.getNowDate());
        return empCareerGuidesMapper.insertEmpCareerGuides(empCareerGuides);
    }

    /**
     * 修改就业指导
     * 
     * @param empCareerGuides 就业指导
     * @return 结果
     */
    @Override
    public int updateEmpCareerGuides(EmpCareerGuides empCareerGuides)
    {
        empCareerGuides.setUpdateTime(DateUtils.getNowDate());
        return empCareerGuidesMapper.updateEmpCareerGuides(empCareerGuides);
    }

    /**
     * 批量删除就业指导
     * 
     * @param ids 需要删除的就业指导主键
     * @return 结果
     */
    @Override
    public int deleteEmpCareerGuidesByIds(Long[] ids)
    {
        return empCareerGuidesMapper.deleteEmpCareerGuidesByIds(ids);
    }

    /**
     * 删除就业指导信息
     * 
     * @param id 就业指导主键
     * @return 结果
     */
    @Override
    public int deleteEmpCareerGuidesById(Long id)
    {
        return empCareerGuidesMapper.deleteEmpCareerGuidesById(id);
    }
}
